package com.hxl.tech.gateway.auth.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 限流配置 Model 
 * @author soliddq
 * @date 2023-10-16
 */
@Entity
@Data
public class LimitRule implements Serializable {

    @Id
    private String ruleId;

    private String ruleName;

    private String ruleDesc;

    private String appId;

    private String merchantCode;

    private String apiName;

    private Integer limitCount;

    private String limitTimeUnit;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
